package cn.com.thinvent.dispatch.service.biz.impl;

import cn.com.thinvent.dispatch.dao.UserMapper;
import cn.com.thinvent.dispatch.entity.User;
import cn.com.thinvent.dispatch.service.biz.UserService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public Boolean login(String username, String password) {
        User login = userMapper.login(username, password);
        return login != null;
    }
}
